package com.xinfu.newproject.bean.login;

public class LoginBean {

    /**
     * success : true
     * message : 登录成功
     * code : 200
     * result : {"userInfo":{"id":"b5404e1acbbd268f1eb00c80f4116102","username":"17688995453","password":"093b1af1e03812b35a532461c1891ca3","salt":"mzanLWrR","sex":0,"phone":"17688995453","tenantId":"144b19becf49798eb3dfafa6f7c71609","projectName":"碧桂园","projectId":"144b19becf49798eb3dfafa6f7c71609","status":1,"delFlag":"0","createBy":"jeecg","createTime":"2019-08-06 10:35:36"},"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1Njg4MDI2NjIsInVzZXJuYW1lIjoiMTc2ODg5OTU0NTMifQ.ybs1U_94laMQ-hwTaehpW_fxFpnYWpRegf21ZUNjwBo"}
     * timestamp : 1568800862574
     */

    private boolean success;
    private String message;
    private int code;
    private ResultBean result;
    private long timestamp;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public static class ResultBean {
        /**
         * userInfo : {"id":"b5404e1acbbd268f1eb00c80f4116102","username":"17688995453","password":"093b1af1e03812b35a532461c1891ca3","salt":"mzanLWrR","sex":0,"phone":"17688995453","tenantId":"144b19becf49798eb3dfafa6f7c71609","projectName":"碧桂园","projectId":"144b19becf49798eb3dfafa6f7c71609","status":1,"delFlag":"0","createBy":"jeecg","createTime":"2019-08-06 10:35:36"}
         * token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1Njg4MDI2NjIsInVzZXJuYW1lIjoiMTc2ODg5OTU0NTMifQ.ybs1U_94laMQ-hwTaehpW_fxFpnYWpRegf21ZUNjwBo
         */

        private UserInfoBean userInfo;
        private String token;

        public UserInfoBean getUserInfo() {
            return userInfo;
        }

        public void setUserInfo(UserInfoBean userInfo) {
            this.userInfo = userInfo;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public static class UserInfoBean {
            /**
             * id : b5404e1acbbd268f1eb00c80f4116102
             * username : 17688995453
             * password : 093b1af1e03812b35a532461c1891ca3
             * salt : mzanLWrR
             * sex : 0
             * phone : 17688995453
             * tenantId : 144b19becf49798eb3dfafa6f7c71609
             * projectName : 碧桂园
             * projectId : 144b19becf49798eb3dfafa6f7c71609
             * status : 1
             * delFlag : 0
             * createBy : jeecg
             * createTime : 2019-08-06 10:35:36
             */

            private String id;
            private String username;
            private String password;
            private String salt;
            private int sex;
            private String phone;
            private String tenantId;
            private String projectName;
            private String projectId;
            private int status;
            private String delFlag;
            private String createBy;
            private String createTime;
            private String avatar;

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public String getSalt() {
                return salt;
            }

            public void setSalt(String salt) {
                this.salt = salt;
            }

            public int getSex() {
                return sex;
            }

            public void setSex(int sex) {
                this.sex = sex;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public String getTenantId() {
                return tenantId;
            }

            public void setTenantId(String tenantId) {
                this.tenantId = tenantId;
            }

            public String getProjectName() {
                return projectName;
            }

            public void setProjectName(String projectName) {
                this.projectName = projectName;
            }

            public String getProjectId() {
                return projectId;
            }

            public void setProjectId(String projectId) {
                this.projectId = projectId;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getDelFlag() {
                return delFlag;
            }

            public void setDelFlag(String delFlag) {
                this.delFlag = delFlag;
            }

            public String getCreateBy() {
                return createBy;
            }

            public void setCreateBy(String createBy) {
                this.createBy = createBy;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }
        }
    }
}
